﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Donal.Xms.Common;
using System.Data;
using System.Text;
using System.Web.UI.HtmlControls;
using static Senparc.Weixin.MP.AdvancedAPIs.GetSkuResult;
using System.Xml.Linq;

namespace Donal.Xms.Web.temp.main
{
    public partial class goods_show : Web.UI.BasePage
    {
        protected int id = 0;
        protected Model.products productsModel;

        protected void Page_Load(object sender, EventArgs e)
        {
            id = DTRequest.GetQueryInt("id");

            productsModel = new BLL.products().GetModel(id);

            if (productsModel == null)
            {
                Response.Redirect(linkurl("index"));
                return;
            }
            else
            {
                Session[DTKeys.SESSION_PRODUCTS] = productsModel;
            }

            ((main)this.Master).bindSEO(productsModel.seo_title, productsModel.seo_keywords, productsModel.seo_description, productsModel.title);

        }
    }
}